//package com.tidc.consumer8001.controller.down;
//
//import com.tidc.commonality.api.StudentDownApi;
//import com.tidc.commonality.ov.UserOV;
//import io.swagger.annotations.ApiOperation;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.http.ResponseEntity;
//import org.springframework.web.bind.annotation.*;
//import org.springframework.web.multipart.MultipartFile;
//
//import feign.Response;
//
//import javax.servlet.http.HttpServletResponse;
//
///**
// * @ClassNmae StudentDownController
// * @Description TODO
// * @Author 冯涛滔
// **/
//@CrossOrigin
//@RequestMapping
//@RestController
//public class StudentDownController {
//	@Autowired
//	StudentDownApi studentDownApi;
//	@RequestMapping(value = "/student/down/work/file/{worksId}",method = RequestMethod.GET)
//	@ApiOperation("学生下载学生项目文件需要下载的项目的id")
//	//需要一个权限判断是否是自己上传的文件
//	public ResponseEntity<byte[]> downFile(String token, @PathVariable("worksId") int worksId){
//		return studentDownApi.studentDownFile(token, worksId);
//	}
//
//	@ApiOperation("下载比赛的详细信息文件需要比赛的id")
//	@RequestMapping(value = "/student/down/match/file/{id}",method = RequestMethod.GET)
//	public ResponseEntity<byte[]> downMatchFile(@PathVariable("id") int id){
//		return studentDownApi.downMatchFile(id);
//	}
//
//	@ApiOperation("上传文件,需要一个文件 一个比赛名字一个 数字老师为1 学生为2")
////	图片200 其他201
//	@RequestMapping(value = "/student/upload/file",method = RequestMethod.POST)
//	public UserOV uploadFile(MultipartFile file, String name, int id, String token){
//		return studentDownApi.uploadFile(file,name,id,token);
//	}
//}
